package com.zzyl.service;

import com.zzyl.dto.ResourceDto;
import com.zzyl.entity.Resource;
import com.zzyl.vo.MenuVo;
import com.zzyl.vo.ResourceVo;
import com.zzyl.vo.TreeItemVo;
import com.zzyl.vo.TreeVo;

import java.util.List;

/**
 * @interfaceName: ResourceService
 * @description:
 * @author: ChenXu
 * @date: 2024/6/2 9:57
 * @Version: 1.0
 */
public interface ResourceService {
    /**
     * 查询资源列表
     * @return
     */
    List<ResourceVo> listResources(ResourceDto resourceDto);
    /**
     * 资源树形
     * @return
     */
    TreeVo findResourceTree(TreeItemVo treeItemVo);
    /**
     * 资源添加
     * @return
     */
    void addResources(Resource resourceDto);
    /**
     * 后台管理登录后, 获取当前用户的菜单
     * @return
     */
    List<MenuVo> menus();

    List<String> findAllButResource();
}
